/**
 * COPYRIGHT HangZhou Trustway Technology Company Limited
 * All right reserved.
 */
package com.zfsmart.component.feign.config;

import feign.RequestInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Author 薛铁琪
 * @CreateTime 2020-07-25 18:09
 * @Version 1.0
 */
@EnableFeignClients(basePackages = {"com.zfsmart"})
@Configuration
@Slf4j
public class FeignConfig {
    @Bean
    public RequestInterceptor headerInterceptor() {
        return new HeaderInterceptor();
    }
}
